﻿using LDM.Framework;
using Microsoft.OpenApi.Models;
using System.ComponentModel;

namespace LDM.API.Models
{

    /// <summary>
    ///  api模块
    /// </summary>
    [AppScan()]
    public class ApiModularInfo : ApiGroupInfo
    {
        /// <summary>
        /// 用户模块
        /// </summary>
        public const string User = "用户模块";
        /// <summary>
        /// 订单模块
        /// </summary>
        public const string Order = "订单模块";

        /// <summary>
        /// 用户模块
        /// </summary>
        public const string Test = "测试模块";

        /// <summary>
        /// 设置基本信息
        /// </summary>
        public override void SetOpenApiInfo()
        {
            Title = "订单服务";
            Description = $"订单服务相关API";
            Contact = new OpenApiContact
            {
                Name = "严浩淼",
                Email = "527758393@qq.com",
                Url = new Uri("https://www.ihavedream.top/swagger/index.html")
            };
            License = new OpenApiLicense
            {
                Name = "许可证名字",
                Url = new Uri("https://www.ihavedream.top/swagger/index.html")
            };
        }
    }
}
